 
package com.xbongbong.sso.domain.entity;

import com.xbongbong.paas.toolbox.util.DateUtil;
import com.xbongbong.paas.toolbox.wrap.Entity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author kaka
 * @time 2018-8-24
 */
@ToString
@Getter
@Setter
public class XbbUserEntity extends Entity {

	private static final long serialVersionUID = 4623255506468285867L;
	private static final Logger LOG = LoggerFactory.getLogger(XbbUserEntity.class);

	//========== properties ==========
	/**
	 * 优化innodb B+树，主键
	 */
	private Integer id;
	/**
	 * 公司ID
	 */
	private String corpid;
	/**
	 * 员工唯一标识ID（不可修改）
	 */
	private String userId;
	/**
	 * 钉钉Id
	 */
	private String dingId;
	/**
	 * 手机号码
	 */
	private String mobile;
	/**
	 * 成员名称
	 */
	private String name;
	/**
	 * 员工工号
	 */
	private String jobnumber;
	/**
	 * 邮箱
	 */
	private String email;
	/**
	 * 添加时间
	 */
	private Integer addTime;
	/**
	 * 更新时间
	 */
	private Integer updateTime;
	/**
	 * 删除标记
	 */
	private Integer del;

	public XbbUserEntity() {
		int now = DateUtil.getInt();

		this.addTime = now;
		this.updateTime = now;
		this.del = 0;
	}
}

